﻿using System;

namespace SmartFront.Toolkit.ActionFramework
{
    /// <summary>
    /// Service Info
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public sealed class OperationInfoAttribute : Attribute
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="OperationInfoAttribute"/> class.
        /// </summary>
        /// <param name="operationName">Name of the operation.</param>
        public OperationInfoAttribute(string operationName)
        {
            this.OperationName = operationName;
        }

        /// <summary>
        /// Gets or sets the name of the operation.
        /// </summary>
        /// <value>The name of the operation.</value>
        public string OperationName { get; private set; }
    }
}